package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.entity.family.LoanUnionForeignChannelInfo;
import com.tuanzi.loan.business.service.family.LoanUnionForeignChannelInfoService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanUnionForeignChannelInfoRequest;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 17:22 2018/11/19
 * Description:
 */
public class LoanUnionForeignChannelInfoLazyDataModel extends BaseLazyDataModel<LoanUnionForeignChannelInfoRequest, LoanUnionForeignChannelInfo> {
    private static final long serialVersionUID = -8449983739261242053L;

    private LoanUnionForeignChannelInfoService loanUnionForeignChannelInfoService = SpringContextHolder.getBean(LoanUnionForeignChannelInfoService.class);


    public LoanUnionForeignChannelInfoLazyDataModel(LoanUnionForeignChannelInfoRequest loanUnionForeignChannelInfoRequest) {
        super(loanUnionForeignChannelInfoRequest);
    }

    @Override
    protected Page<LoanUnionForeignChannelInfo> doLoad(PageSearcher<LoanUnionForeignChannelInfoRequest> pageSearcher) {
        return loanUnionForeignChannelInfoService.list(pageSearcher);
    }
}
